<?php

namespace app\admin\model;

use think\Model;


class Collection extends Model
{


    // 表名
    protected $name = 'collection';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = false;
    protected $deleteTime = false;
    protected $resultSetType = 'collection';


    public function video()
    {
        return $this->belongsTo('app\admin\model\Dvideo', 'videoid', 'id', [], 'LEFT')->setEagerlyType(0);
    }

}
